home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / GLUT-3.7 / LIB / GLUT / Imakefile < prev    next >
Encoding:
Makefile  |  1998-08-12  |  3.3 KB  |  175 lines

  1.  
  2. /* Copyright (c) Mark J. Kilgard, 1994. */
  3.  
  4. #define DoNormalLib YES
  5.  
  6. #include <Library.tmpl>
  7.  
  8. #include "../../Glut.cf"
  9.  
  10. HDRS = \
  11.     glutint.h \
  12.     glutstroke.h \
  13.     layerutil.h
  14.  
  15. SRCS = \
  16.     glut_8x13.c \
  17.     glut_9x15.c \
  18.     glut_bitmap.c \
  19.     glut_bwidth.c \
  20.     glut_cindex.c \
  21.     glut_cmap.c \
  22.     glut_cursor.c \
  23.     glut_dials.c \
  24.     glut_dstr.c \
  25.     glut_event.c \
  26.     glut_ext.c \
  27.     glut_fullscrn.c \
  28.     glut_gamemode.c \
  29.     glut_get.c \
  30.     glut_glxext.c \
  31.     glut_hel10.c \
  32.     glut_hel12.c \
  33.     glut_hel18.c \
  34.     glut_init.c \
  35.     glut_input.c \
  36.     glut_joy.c \
  37.     glut_key.c \
  38.     glut_keyctrl.c \
  39.     glut_keyup.c \
  40.     glut_menu.c \
  41.     glut_menu2.c \
  42.     glut_mesa.c \
  43.     glut_modifier.c \
  44.     glut_mroman.c \
  45.     glut_overlay.c \
  46.     glut_roman.c \
  47.     glut_shapes.c \
  48.     glut_space.c \
  49.     glut_stroke.c \
  50.     glut_swap.c \
  51.     glut_swidth.c \
  52.     glut_tablet.c \
  53.     glut_teapot.c \
  54.     glut_tr10.c \
  55.     glut_tr24.c \
  56.     glut_util.c \
  57.     glut_vidresize.c \
  58.     glut_warp.c \
  59.     glut_win.c \
  60.     glut_winmisc.c \
  61.     layerutil.c
  62.  
  63. OBJS = \
  64.     glut_8x13.o \
  65.     glut_9x15.o \
  66.     glut_bitmap.o \
  67.     glut_bwidth.o \
  68.     glut_cindex.o \
  69.     glut_cmap.o \
  70.     glut_cursor.o \
  71.     glut_dials.o \
  72.     glut_dstr.o \
  73.     glut_event.o \
  74.     glut_ext.o \
  75.     glut_fullscrn.o \
  76.     glut_gamemode.o \
  77.     glut_get.o \
  78.     glut_glxext.o \
  79.     glut_hel10.o \
  80.     glut_hel12.o \
  81.     glut_hel18.o \
  82.     glut_init.o \
  83.     glut_input.o \
  84.     glut_joy.o \
  85.     glut_key.o \
  86.     glut_keyctrl.o \
  87.     glut_keyup.o \
  88.     glut_menu.o \
  89.     glut_menu2.o \
  90.     glut_mesa.o \
  91.     glut_modifier.o \
  92.     glut_mroman.o \
  93.     glut_overlay.o \
  94.     glut_roman.o \
  95.     glut_shapes.o \
  96.     glut_space.o \
  97.     glut_stroke.o \
  98.     glut_swap.o \
  99.     glut_swidth.o \
  100.     glut_tablet.o \
  101.     glut_teapot.o \
  102.     glut_tr10.o \
  103.     glut_tr24.o \
  104.     glut_util.o \
  105.     glut_vidresize.o \
  106.     glut_warp.o \
  107.     glut_win.o \
  108.     glut_winmisc.o \
  109.     layerutil.o
  110.  
  111. #ifdef LibraryObjectRule
  112. LibraryObjectRule()
  113. #else
  114. /* XXX Very lame, you must be using pre-R5 config files!  This
  115.    will probably do essentially what LibraryObjectRule does. */
  116. NormalLibraryObjectRule()
  117. #endif
  118.  
  119. NormalLibraryTarget(glut,$(OBJS))
  120.  
  121. /* I've gotten too many complaints from people (mostly Linux users)
  122.    trying to build GLUT that have problems using lex and yacc to
  123.    build the stroke fonts for GLUT so I will simply supply the
  124.    generated C stroke fonts files.  If you would like to build the
  125.    fonts, please uncomment the following define of BuildStrokeFontsWithLex
  126.    and regenerate the Makefile. */
  127.  
  128. /* #define BuildStrokeFontsWithLex */
  129.  
  130. #ifdef BuildStrokeFontsWithLex
  131.  
  132. # for SGI's parallel make
  133. .ORDER : strokegen.h strokegen.c
  134.  
  135. strokegen.h strokegen.c : strokegen.y
  136.     $(YACC) -d strokegen.y
  137.     $(MV) y.tab.c strokegen.c
  138.     $(MV) y.tab.h strokegen.h
  139.  
  140. /* XXX Attempt to make up for the lack of lex support in pre-R6 imake
  141.    config files. */
  142. #ifndef LexCmd
  143. #define LexCmd lex
  144. LEX = LexCmd
  145. #endif
  146. #ifndef LexLib
  147. #define LexLib -ll
  148. LEXLIB = LexLib
  149. #endif
  150.  
  151. strokelex.c : strokelex.l
  152.     $(LEX) strokelex.l
  153.     $(MV) lex.yy.c strokelex.c
  154.  
  155. strokegen : strokegen.o strokelex.o
  156.     $(CC) -o $@ $(CFLAGS) strokegen.o strokelex.o $(LEXLIB)
  157.  
  158. glut_roman.c : Roman.stroke strokegen
  159.     ./strokegen -s glutStrokeRoman < Roman.stroke > $@
  160.  
  161. glut_mroman.c : MonoRoman.stroke strokegen
  162.     ./strokegen -s glutStrokeMonoRoman < MonoRoman.stroke > $@
  163.  
  164. GEN_STROKES = glut_roman.c glut_mroman.c
  165.  
  166. depend:: glut_roman.c glut_mroman.c
  167.  
  168. #endif /* BuildStrokeFontsWithLex */
  169.  
  170. clean::
  171.     $(RM) y.tab.h y.tab.c lex.yy.c gram.h gram.c lex.c
  172.     $(RM) strokelex.c strokegen.c $(GEN_STROKES) strokegen capturexfont
  173.  
  174. DependTarget()
  175.